package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_MenuNo", catalog="Id")
public class YsMenuNo extends BaseEntity<YsMenuNo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MenuId", nameJava="menuId", typeDataBase="bigint")
	private Long menuId;
	@YsField(nameDataBase="PreCode", nameJava="preCode", typeDataBase="varchar")
	private String preCode;
	@YsField(nameDataBase="ConnectCode", nameJava="connectCode", typeDataBase="varchar")
	private String connectCode;
	@YsField(nameDataBase="StartNo", nameJava="startNo", typeDataBase="int")
	private Integer startNo;
	@YsField(nameDataBase="CurrentNo", nameJava="currentNo", typeDataBase="int")
	private Integer currentNo;
	@YsField(nameDataBase="CurrentDay", nameJava="currentDay", typeDataBase="char")
	private String currentDay;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsMenuNo setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public YsMenuNo setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public String getPreCode() {
		return preCode;
	}
	public YsMenuNo setPreCode(String preCode) {
		this.preCode = preCode;
		return this;
	}
	public String getConnectCode() {
		return connectCode;
	}
	public YsMenuNo setConnectCode(String connectCode) {
		this.connectCode = connectCode;
		return this;
	}
	public Integer getStartNo() {
		return startNo;
	}
	public YsMenuNo setStartNo(Integer startNo) {
		this.startNo = startNo;
		return this;
	}
	public Integer getCurrentNo() {
		return currentNo;
	}
	public YsMenuNo setCurrentNo(Integer currentNo) {
		this.currentNo = currentNo;
		return this;
	}
	public String getCurrentDay() {
		return currentDay;
	}
	public YsMenuNo setCurrentDay(String currentDay) {
		this.currentDay = currentDay;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsMenuNo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsMenuNo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsMenuNo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsMenuNo ysMenuNo(
		Long menuId,
		String preCode,
		String connectCode,
		Integer startNo,
		Integer currentNo,
		String currentDay,
		Integer status
			) {
		YsMenuNo entity = new YsMenuNo();
		entity.setMenuId(menuId);
		entity.setPreCode(preCode);
		entity.setConnectCode(connectCode);
		entity.setStartNo(startNo);
		entity.setCurrentNo(currentNo);
		entity.setCurrentDay(currentDay);
		entity.setStatus(status);
		return entity;
	}
}